package com.xyh.flowershop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xyh.flowershop.domain.Type;
import com.xyh.flowershop.vo.resp.common.KV;
import com.xyh.flowershop.vo.resp.type.TypePageRespVo;
import com.xyh.flowershop.vo.req.type.TypePageReqVo;
import com.xyh.flowershop.vo.resp.type.TypeRespVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author 10728
* @description 针对表【tb_type】的数据库操作Mapper
* @createDate 2024-03-24 20:54:27
* @Entity com.xyh.flowershop.domain.Type
*/
public interface TypeMapper extends BaseMapper<Type> {

    int removeType(@Param("id") Long id);

    int removeBatchType(@Param("ids") List<Long> ids);

    IPage<TypePageRespVo> selectPageByCondition(@Param("page") IPage<TypePageRespVo> pages,@Param("vo")TypePageReqVo vo);

//    List<TypePageRespVo> selectListByCondition(@Param("mapVo") Map<String, Object> map);

    TypeRespVo selectTypeById(Long id);

    List<KV> selectTypeKV();

}




